package com.foredu.fiqs.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/*
 * 学期类
 */
@Entity
@Table(name = "T_Term")
public class Term implements Serializable {

	private static final long serialVersionUID = 1L;
	private int id;
	private int startYear;// 学年度开始年
	private int endYear;// 学年度结束年
	private int termOrder;// 当前学期在本学年度中的次序，1代表上学期，2代表下学期

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column
	public int getStartYear() {
		return startYear;
	}

	public void setStartYear(int startYear) {
		this.startYear = startYear;
	}

	@Column
	public int getEndYear() {
		return endYear;
	}

	public void setEndYear(int endYear) {
		this.endYear = endYear;
	}

	@Column
	public int getTermOrder() {
		return termOrder;
	}

	public void setTermOrder(int termOrder) {
		this.termOrder = termOrder;
	}

}
